package com.oxo.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.oxo.common.utils.PageUtils;
import com.oxo.gulimall.ware.entity.PurchaseEntity;
import com.oxo.gulimall.ware.vo.MergeVO;
import com.oxo.gulimall.ware.vo.PurchaseDoneVO;

import java.util.List;
import java.util.Map;

/**
 * 采购单
 *
 * @author oxo
 * @email yuxizhou42@163.com
 * @date 2025-07-09 22:38:07
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);


    /**
     * 查询未领取的采购单
     */
    PageUtils queryPageUnreceive(Map<String, Object> params);

    /**
     * 合并采购需求至采购单
     */
    void mergePurchase(MergeVO mergeVo);

    /**
     * 领取采购单
     */
    void received(List<Long> ids);

    /**
     * 完成采购，入库
     */
    void done(PurchaseDoneVO doneVo);
}

